using System;
using Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Ordens.BusinessEntity;

using Sinacor.Servico.Bovespa.Ordens;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    public static class TranslateBetweenBolsaRequestAndBolsa
    {
        public static BusinessEntity.Bolsa TranslateBolsaRequestToBolsa(DataContract.Request.ConsultarBolsaCodigoRequest from)
        {

            if (from == null) return null;

            BusinessEntity.Bolsa to = new BusinessEntity.Bolsa();
            to.Codigo = from.Codigo;
            return to;

        }
    }
}

